package com.sxt.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix="girl")
// spring 默认注入一个单例对象，更改对象为多例模式
// xml <bean scope="">
@RefreshScope// 对象不为单例// 开机有一个对象，但是有一个多例的对象
public class GirlProperties {
 
	private String name;
    private Integer age;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
    
    
}
